package com.lqq.service;

import com.lqq.dao.DeptMapper;
import com.lqq.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lqq on 2017/6/29.
 */
@Service
public class DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public List<Dept> getAllDepts() {
        return deptMapper.selectByExample(null);
    }
}
